import React from 'react';

import {
  EasyIconValue
} from '../../src';

export default function getIcon(type: string): EasyIconValue {
  switch (type) {
    case 'svg':
      return `<svg viewBox="0 0 1991 1024" xmlns="http://www.w3.org/2000/svg" width="248.875" height="128">
  <path d="M464.889 516.196a486.72 486.72 0 1 0 973.44 0 486.72 486.72 0 1 0-973.44 0Z" fill="#82B329" />
  <path d="M616.427 340.693a92.338 92.338 0 1 0 184.675 0 92.338 92.338 0 1 0-184.675 0Z" fill="#474747" />
  <path d="M668.302 347.947a55.04 55.04 0 1 0 110.08 0 55.04 55.04 0 1 0-110.08 0Z" fill="#5D5D5D" />
  <path d="M1112.356 344.747a92.338 92.338 0 1 0 184.675 0 92.338 92.338 0 1 0-184.675 0Z" fill="#42403E" />
  <path d="M1134.898 351.68a55.04 55.04 0 1 0 110.08 0 55.04 55.04 0 1 0-110.08 0Z" fill="#565552" />
  <path d="M957.902 261.867C857.28 252.516 632.107 375.644 629.938 634.95c6.613 123.342 164.8 189.156 323.058 191.609" fill="#E2DED3" />
  <path d="M957.902 261.867s226.17-25.031 313.814 323.413c38.293 166.436-140.267 244.089-318.72 241.316l4.906-564.73z" fill="#D7CCBB" />
  <path d="M747.307 682.382c-37.405-18.275-26.383-87.146 13.297-136s104.64-57.849 130.383-40.96c32.32 26.24 26.382 87.147-13.298 136s-95.396 58.062-130.382 40.96z" fill="#474747" />
  <path d="M1162.133 687.396c37.867-17.387 28.48-86.472-9.99-136.285s-103.219-60.373-129.352-44.089c-32.96 25.458-28.48 86.471 9.991 136.285s93.974 60.337 129.351 44.089z" fill="#42413D" />
  <path d="M950.649 664.178s59.627-4.302 74.418 20.266-71.858 37.903-73.316 37.867c-1.422 0-65.564-9.387-76.409-33.564-.782-23.574 68.871-26.063 75.307-24.57z" fill="#43433E" />
  <path d="M831.502 605.618a24.747 24.747 0 1 0 49.494 0 24.747 24.747 0 1 0-49.494 0Z" fill="#E2DED3" />
  <path d="M845.511 605.796a9.138 9.138 0 1 0 18.276 0 9.138 9.138 0 1 0-18.276 0Z" fill="#42413D" />
  <path d="M1027.982 608a24.747 24.747 0 1 0 49.494 0 24.747 24.747 0 1 0-49.494 0Z" fill="#E2DED3" />
  <path d="M1045.227 608.213a9.138 9.138 0 1 0 18.275 0 9.138 9.138 0 1 0-18.275 0Zm-93.24 180.937a34.916 22.471.693 1 0 .544-44.939 34.916 22.471.693 1 0-.544 44.94Z" fill="#42413D" />
  <path d="M953.635 788.995a19.378 10.311.693 1 0 .25-20.62 19.378 10.311.693 1 0-.25 20.62Z" fill="#C1272D" />
</svg>`;
    case 'url':
      return 'https://img.alicdn.com/imgextra/i2/O1CN012LNsyu1lbOXdNPEae_!!6000000004837-2-tps-198-200.png';
    case 'base64':
      return '';
    case 'base64-svg':
      return '';
    case 'class':
      return {
        className: 'kiss-icon'
      };
    case 'jsx':
      return <strong style={{
        color: 'red'
      }}>JSX</strong>;
    default:
      return '字符串';
  }
}
